package misscl.online.slh_gym.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * project name: IntelliJ IDEA
 * Date: 2022/12/4 17:38
 *
 * @PackageName: misscl.online.slh_gym.entity
 * @ClassName: CoachVo
 * @Author: Theo
 * @Version:
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CoachVo {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("教练姓名")
    private String name;

    @ApiModelProperty("教练电话")
    private String phone;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("住址")
    private String address;

    @ApiModelProperty("入职时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("0正常，1休假，2离职")
    private Integer status;

    @ApiModelProperty("工龄")
    @TableField("coach_age")
    private Integer coachAge;

    @ApiModelProperty("教练工资")
    private Integer salary;

    private List<Course> courseList = new ArrayList<>();
}
